import React, { PureComponent } from 'react';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import {
  Button, Modal,
} from 'antd';

export default class OperatorButton extends PureComponent {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() { }

  render() {
    const { className, type, icon, size, text, onClick, disabled, href, target, loading, ghost } = this.props;

    return (
      <Button
        className={className}
        type={type}
        icon={icon}
        size={size}
        onClick={onClick}
        disabled={disabled}
        href={href}
        target={target}
        loading={loading}
        ghost={ghost}
      >
        {text}
      </Button>
    );
  }

}